package com.xy.annotaion.handler.kotlin

import org.springframework.security.access.prepost.PreAuthorize
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
open class Test {
    @RequestMapping("kt_test")
    @PreAuthorize("permitAll")//not available
//    @PermitAll
    fun ktTest(): String {
        return "kt_test"
    }
}

fun main() {
    println("Hello world")
}


